package com.zmj.sy.mom.srv.aps.utils;

import lombok.AccessLevel;
import lombok.NoArgsConstructor;

@NoArgsConstructor(access = AccessLevel.PRIVATE)
public class PkgUtils {

    public static String gen(int splitNum){
        return "WP" + String.format("%02d", splitNum);
    }

    public static int rollBack(String splitNum){
        String removeWp = splitNum.replace("WP-","").replace("WP", "");
        return Integer.parseInt(removeWp);
    }

}
